<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="./resources/css/style.css" type="text/css" />
<link rel="stylesheet" href="./resources/css/calendar.css"
	type="text/css" />

<title>Manage Profile</title>
<script type="text/javascript">
	function init() {
		calendar.set("DOB");
	}
</script>
</head>
<body>
	<table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass"
		style="display: none;">
		<tr>
			<td id="ds_calclass"></td>
		</tr>
	</table>
	<script type="text/javascript" src="./resources/js/calendar.js"></script>
	<table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass"
		style="display: none;">
		<tr>
			<td id="ds_calclass"></td>
		</tr>
	</table>
	<h1>
		<a href="home.html"><spring:message code="application.name" /></a>
	</h1>
	<form:form modelAttribute="profile" action="profileForm.html"
		method="post">
		<table class="silver">
			<tr>
				<th colspan=2><spring:message code="profile.details" /></th>
			</tr>
			<tr>
				<td><spring:message code="profile.firstName" /></td>
				<td><form:input path="firstName" size="20" maxlength="50" /> <form:errors
						path="firstName" cssClass="errors" /></td>
			</tr>
			<tr>
				<td><spring:message code="profile.lastName" /></td>
				<td><form:input path="lastName" size="20" maxlength="50" /> <form:errors
						path="lastName" cssClass="errors" /></td>
			</tr>
			<tr>
				<td><spring:message code="profile.DOB" /></td>
				<td><form:input onclick="ds_sh(this);" style="cursor: text" path="DOB" size="20"
						maxlength="20" /> <form:errors path="DOB" cssClass="errors" /></td>
			</tr>
			<tr>
				<td><spring:message code="profile.gender" /></td>
				<td><form:select path="gender">
						<form:option value="true">Male</form:option>
						<form:option value="false">Female</form:option>
					</form:select></td>
			</tr>
			<tr>
				<td><spring:message code="profile.tittle" /></td>
				<td><form:select path="tittle">
						<c:forEach items="${listTittles}" var="Tt">
							<form:option value="${Tt}">${Tt}</form:option>
						</c:forEach>
					</form:select></td>
			</tr>
			<tr>
				<td><spring:message code="profile.skills" /></td>
				<td><form:errors path="skill" cssClass="errors" /> <br> <c:forEach
						items="${listSkills}" var="Sk">
						<form:checkbox path="skill" value="${Sk}" />${Sk} <br>
					</c:forEach></td>
			</tr>
			<tr>
				<td><button type="button" onClick="history.go(-1);" >Back</button></td>
				<td align="right" valign="bottom">
					<button type="submit" name="save">Save</button>
				</td>
			</tr>
		</table>

	</form:form>
</body>
</html>